using System.Linq;

namespace MBA.FluentExt.Ext
{
	public abstract class Observable<T> : ExtObject
		where T : ExtObject
	{
		#region Methods

		public T Listeners(params Listener[] listeners)
		{
			return Config<T>("listeners", listeners.ToDictionary(k => k.eventName, Raw.Object));
		}

		#endregion Methods
	}
}